import baseApi from '@/api/api'
// import { getToken, setToken, removeToken } from '@/utils/login'
import * as types from './mutation-types'

const state = {
}

const getters = {
}

const mutations = {
}

const actions = {
	  //加工厂用户-获取分页  getFactoryUserPage
	  getFactoryUserPage({ commit }, param) {
		return baseApi.getFactoryUserPage(param).then(res => {
		  return res
		})
	  },
	  //加工厂用户-修改状态(updateFactoryUserState)
	  updateFactoryUserState({ commit }, param) {
	  		return baseApi.updateFactoryUserState(param).then(res => {
	  		  return res
	  		})
	  },
	  // addOrUpdateFactoryUser
	  addOrUpdateFactoryUser({ commit }, param) {
	  		return baseApi.addOrUpdateFactoryUser(param).then(res => {
	  		  return res
	  		})
	  },
}

export default {
	// namespaced: true,
	state,
	getters,
	mutations,
	actions
}
